package com.heyue.demo.Singleton;

/**
 * @author fenghe
 * @date 2022/2/12 12:53
 */
public class Hungry {
    /**饿汉式*/
    private static Hungry instance = new Hungry();

    private Hungry() {

    }

    public static Hungry getInstance() {
        return instance;
    }
}
